package com.cssw.fyzb.core.dao.video;

import com.cssw.fyzb.core.model.dodb.TaskViewAdvert;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @Author: YangYiQun
 * @Date: 2020/10/10 15:10
 */
@Repository
public class TaskViewAdvertDaoImpl implements TaskViewAdvertDao {

    @Override
    public void save(Long userId, String adOne, String adTwo, String adThree, String dayTime, String status) {
        TaskViewAdvert taskViewAdvert = new TaskViewAdvert();
        taskViewAdvert.setUserId(userId);
        taskViewAdvert.setDayTime(dayTime);
        taskViewAdvert.setAdOne(adOne);
        taskViewAdvert.setAdTwo(adTwo);
        taskViewAdvert.setAdThree(adThree);
        taskViewAdvert.setStatus(status);
        taskViewAdvert.setCreateTime(new Date());
        taskViewAdvert.save();

    }
}
